package com.stormrage.edu.serv.learn.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.stormrage.edu.dao.learn.LeaStudentCourseDao;
import com.stormrage.edu.serv.learn.LeaStudentCourseServ;
import com.stormrage.entity.learn.req.LeaStudentCourseReq;
import com.stormrage.entity.learn.view.LeaStudentCourse;
import com.stormragetech.core.exception.StormrageTechException;

/**
 * @Title: LeaStudentCourseServImpl.java
 * @Package com.stormrage.edu.serv.learn.impl
 * @Description: 选课 Service
 * @author www.stormragetech.com
 * @date 2016年4月21日
 * @version V1.0
 */
@Service
public class LeaStudentCourseServImpl implements LeaStudentCourseServ {

	private static final Logger logger = LoggerFactory.getLogger(LeaStudentCourseServImpl.class);

	@Autowired
	private LeaStudentCourseDao leaStudentCourseDao;

	@Override
	public List<LeaStudentCourse> queryListByStuNess(LeaStudentCourseReq arg0) throws StormrageTechException {

		logger.debug(" 【 Serv 】- 【 LeaStudentCourseServ 】- 【 QueryListByStuNess 】-【 STARTED 】");

		Map<String, Object> map = new HashMap<String, Object>();
		map.put("stuId", arg0.getStuId());
		map.put("ness", arg0.getNess());

		List<LeaStudentCourse> array = leaStudentCourseDao.queryListByStuNess(map);

		logger.debug(" 【 Serv 】- 【 LeaStudentCourseServ 】- 【 QueryListByStuNess 】-【 COMPLETED 】");
		return array;

	}

}
